package com.joey.jvm.example.gc;

/**
 * parallel
 * @Author hyy
 **/
public class GCExample {

    private Object object;

    public GCExample(){
        byte []m = new byte[20*1024*1024];
    }
    public static void main(String[] args) {

        GCExample example = new GCExample();
        GCExample example2 = new GCExample();

        example.object = example2;
        example2.object = example;

        example = null;
        example2 = null;

        System.gc();
    }
}
